package com.hn.gege.sys.modules.sys.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * <p>
 * 角色菜单分配
 * </p>
 *
 * @author zxy
 * @since 2020-08-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_role_menu")
@ApiModel(value="RoleMenu对象", description="角色菜单分配")
public class RoleMenu implements Serializable {

    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "角色id")
    private String roleCode;

    @ApiModelProperty(value = "菜单id", required = true)
    @NotBlank
    private String menuId;

    @ApiModelProperty(value = "类别(0:首页用的)", required = true)
    @NotBlank
    private String category;



}
